package lab02.Test13;

/**
 * Created by lady on 2017/12/21.
 */
public class School  extends ComputerAverage {
    //计算平均分的方法是直接是总分除以总科目

    @Override
    double average() {
        double sum=0;
        for(int i=0;i<=5;i++){
            sum+=scorces[i];
        }
        return sum/5;
    }
}
